package com.agou.core.util;

public class TestUtDate {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		TestUtDate test = new TestUtDate();
		try {
			test.print();
			
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
	
	
	public void print() throws Exception{
		UtDate uDate = new UtDate("20130607");
		UtDate sDate = new UtDate();
		
		System.out.println(uDate);
		System.out.println(sDate);
		System.out.println(uDate.compareTo(sDate));
		System.out.println(uDate.compareTo(20130609));
		System.out.println(uDate.getTimeInMillis() - sDate.getTimeInMillis());
	};


}
